package com.hzdesk.media.koreabatchmatvector.request;

import android.content.Context;

import com.hzdesk.media.koreabatchmatvector.inter.ICallBack;


/**
 * Created by Administrator on 2018/5/25.
 */

public class DeleteCloudFileRequest {
    private static final String TAG=DeleteCloudFileRequest.class.getSimpleName();
    private Model model = Model.getInstance();
    private Context context;
    private String Url;
    private OnDeleteCloudFileListener onDeleteCloudFileListener;

    public DeleteCloudFileRequest(Context context, String url) {
        this.context = context;
        Url = url;
    }
    public interface OnDeleteCloudFileListener{
        void success();
        void fail(String s);
    }
    private String Success="SUCCESS";
    private String Fail="FAIL";
    public void setOnDeleteCloudFileListener(OnDeleteCloudFileListener onDeleteCloudFileListener){
        this.onDeleteCloudFileListener=onDeleteCloudFileListener;
        getRequest(Url);

    }


    public void getRequest(String url) {
        model.getSynchronized(context, url, new ICallBack() {
            @Override
            public void result(String s) {
                System.out.println(TAG+":"+s);

            }
        });
    }
}
